<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%	
	//获取项目名
	String path = request.getContextPath();
	//获取tomcat 协议+地址+端口号+ 获取项目名
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	//out.println(basePath);
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title>用户后台</title>
<link rel="stylesheet" type="text/css"
	href="<%=basePath %>background/static/admin/layui/css/layui.css" />
<link rel="stylesheet" type="text/css"
	href="<%=basePath %>background/static/admin/css/admin.css" />
</head>
<body>
	<%
			Object user =session.getAttribute("user");
			/* User user = null;
			if(u instanceof User){
				User user = (User)u;
			} */
			pageContext.setAttribute("user",user); 
		%>
	<div class="main-layout" id='main-layout'>
		<!--侧边栏-->
		<div class="main-layout-side">
			<!-- <div class="m-logo">
				</div> -->
			<ul class="layui-nav layui-nav-tree" lay-filter="leftNav">
				<li class="layui-nav-item layui-nav-itemed"><a
					href="javascript:;"><i class="iconfont">&#xe607;</i>院校信息</a>
					<dl class="layui-nav-child">

						<dd>
							<a href="javascript:;"
								data-url="<%=basePath %>BackCollegeServlet?mark=showCollege"
								data-id='1' data-text="院校管理"><span class="l-line"></span>院校管理</a>
						</dd>
						
					</dl>
						
				</li>
				
				<li class="layui-nav-item layui-nav-itemed"><a
					href="javascript:;"><i class="iconfont">&#xe607;</i>论坛信息</a>
					<dl class="layui-nav-child">
						<dd>
							<a href="javascript:;"
								data-url="<%=basePath %>BackForumServlet?mark=showQuestion"
								data-id='2' data-text="问题管理"><span class="l-line"></span>问题管理</a>
						</dd>
						
						<dd>
							<a href="javascript:;"
								data-url="<%=basePath %>backgroundServlet?mark=bShowRs&userId=${user.userId}&manage=${user.manage}"
								data-id='3' data-text="回答管理"><span class="l-line"></span>回答管理</a>
						</dd>
						
						<dd>
							<a href="javascript:;"
								data-url="<%=basePath %>backgroundServlet?mark=bShowRs&userId=${user.userId}&manage=${user.manage}"
								data-id='4' data-text="经验贴管理"><span class="l-line"></span>经验贴管理</a>
						</dd>
						
						<dd>
							<a href="javascript:;"
								data-url="<%=basePath %>backgroundServlet?mark=bShowRs&userId=${user.userId}&manage=${user.manage}"
								data-id='5' data-text="资源贴管理"><span class="l-line"></span>资源贴管理</a>
						</dd>
						
					</dl>
						
				</li>

				<li class="layui-nav-item layui-nav-itemed"><a
					href="javascript:;"><i class="iconfont">&#xe607;</i>商城信息</a>
					<dl class="layui-nav-child">

						<dd>
							<a href="javascript:;"
								data-url="<%=basePath %>BackMallServlet?mark=showBooks"
								data-id='6' data-text="书籍管理"><span class="l-line"></span>书籍管理</a>
						</dd>
						
					</dl>
						
				</li>
				

				<li class="layui-nav-item layui-nav-itemed"><a
					href="javascript:;"><i class="iconfont">&#xe607;</i>评论信息</a>
					<dl class="layui-nav-child">

						<dd>
							<a href="javascript:;"
								data-url="<%=basePath %>BackCommentServlet?mark=showMessageComment"
								data-id='7' data-text="资讯评论"><span class="l-line"></span>资讯评论</a>
						</dd>
						
						<dd>
							<a href="javascript:;"
								data-url="<%=basePath %>backgroundServlet?mark=bShowRs&userId=${user.userId}&manage=${user.manage}"
								data-id='8' data-text="回答评论"><span class="l-line"></span>回答评论</a>
						</dd>
						
						<dd>
							<a href="javascript:;"
								data-url="<%=basePath %>backgroundServlet?mark=bShowRs&userId=${user.userId}&manage=${user.manage}"
								data-id='9' data-text="经验贴评论"><span class="l-line"></span>经验贴评论</a>
						</dd>
						
						<dd>
							<a href="javascript:;"
								data-url="<%=basePath %>backgroundServlet?mark=bShowRs&userId=${user.userId}&manage=${user.manage}"
								data-id='10' data-text="资源贴评论"><span class="l-line"></span>资源贴评论</a>
						</dd>
						
					</dl>
						
				</li>
				
				<li class="layui-nav-item layui-nav-itemed"><a
					href="javascript:;"><i class="iconfont">&#xe607;</i>资讯信息</a>
					<dl class="layui-nav-child">

						<dd>
							<a href="javascript:;"
								data-url="<%=basePath %>BackMessageServlet?mark=showMessage"
								data-id='11' data-text="资讯管理"><span class="l-line"></span>资讯管理</a>
						</dd>
						
						
					</dl>
						
				</li>

				<li class="layui-nav-item"><a href="javascript:;"
					data-url="<%=basePath %>backgroundServlet?mark=showMu&userId=${user.userId}"
					data-id='12' data-text="个人信息"><i class="iconfont">&#xe606;</i>个人信息</a>
				</li>

			</ul>
		</div>
		<!--右侧内容-->
		<div class="main-layout-container">

			<!--主体内容-->
			<div class="main-layout-body">
				<!--tab 切换-->
				<div class="layui-tab layui-tab-brief main-layout-tab"
					lay-filter="tab" lay-allowClose="true">
					<ul class="layui-tab-title">
						<li class="layui-this welcome">后台主页&nbsp;<strong
							style="color: crimson;">欢迎${user.userName}</strong></li>
					</ul>
					<div class="layui-tab-content">
						<div class="layui-tab-item layui-show"
							style="background: #f5f5f5;">
							<!--1-->
							<iframe
								src="<%=basePath %>BackWelcomeServlet?mark=getStaData"
								width="100%" height="100%" name="iframe" scrolling="auto"
								class="iframe" framborder="0"></iframe>
							<!-- <iframe src="<%=basePath %>background/ordUserJs/index/welcome.jsp" width="100%" height="100%" name="iframe" scrolling="auto" class="iframe" framborder="0"></iframe> -->
							<!--1end-->
						</div>
					</div>
				</div>
			</div>
		</div>
		<!--遮罩-->
		<div class="main-mask"></div>
	</div>
	<script type="text/javascript">
			var scope={
				link:'<%=basePath %>background/ordUserJs/index/welcome.jsp'
			}
		</script>
	<script src="<%=basePath %>background/static/admin/layui/layui.js"
		type="text/javascript" charset="utf-8"></script>
	<script src="<%=basePath %>background/static/admin/js/common.js"
		type="text/javascript" charset="utf-8"></script>
	<script src="<%=basePath %>background/static/admin/js/main.js"
		type="text/javascript" charset="utf-8"></script>

</body>
</html>
